package cn.aku.Plus;

import java.util.ArrayList;
import java.util.Collection;

public class Test {
    public static void main(String[] args) {

        method1();

    }

    /**测试ArrayList*/
    public static void method1(){
        Collection<Integer> c=new ArrayList<>();
        for (int i = 0; i <20; i++) {
            c.add(i);
        }
        System.out.println(c);
        System.out.println(c.size());

    }
}

